package com.eis.sap.in.connector.datahandler;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.eis.thirdsys.connector.datatype.datahandler.DataHandler;

public class TimsHandler implements DataHandler {

	public Object handleData(Object data) {
		Integer value = 0;
		
		Date date = (Date) data;

		if (date != null) {
			String dateStr = new SimpleDateFormat("HHmmss").format(date);
			value = new Integer(dateStr);
		}
		
		return value;
	}
}
